const TaoBao = require('../../TaoBao')

let getList = (params, functionName, href) => {
    console.log(params)
    if (isNaN(parseInt(params.page_no)) || params.page_no < 0) {
        params.page_no = 1
    }
    return TaoBao.searchByKeyWord(params.keyword, params.page_no)
}

module.exports = getList
